package com.kymatrix.kycarbon.xsmd.system.server.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kymatrix.kycarbon.xsmd.system.server.model.entity.UserRoleRelationEntity;
import java.util.Collection;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface UserRoleMapper extends BaseMapper<UserRoleRelationEntity> {

    void deleteByUserId(String userId);

    List<UserRoleRelationEntity> selectByUserId(String userId);

    List<UserRoleRelationEntity> selectByRoleId(String roleId);

    List<UserRoleRelationEntity> selectByRoleIds(@Param("roleIds") Collection<String> roleIds);
}
